/*
 * @Author: xusun000「xusun000@foxmail.com」 
 * @Date: 2022-08-03 10:38:39 
 * @Last Modified by:   xusun000 
 * @Last Modified time: 2022-08-03 10:38:39 
 */
import 'package:flutter_sensor_backend/middleware/mid_request.dart';

class Api {
  AddCollection(Map param) async {
    var res = await XHttp().post(
      url: "/addCollection",
      param: param,
    );
    return res;
  }

  FilterData(Map param) async {
    var res = await XHttp().post(
      url: "/filterData",
      param: param,
    );
    return res;
  }

  Login(String username, String password) async {
    var res = await XHttp().post(
      url: "/login",
      param: {
        "username": username, // xusun000
        "password": password, // 1234567xs
      },
    );
    return res;
  }
}
